const app = {
  state: {
    test: false,
    isCollapse: false,
    about: false,
    setting: false,
    config: false,
    openFile: false,
    newFile: false,
    scFile: false,
    saveORclear: false,
    scoreFlag: false,
    videoSrc: null,
    videoId: null
  },

  mutations: {
    TRIGGER: state => {
      state.isCollapse = !state.isCollapse
    },
    SET_VIDEO_SRC: (state, videoSrc) => {
      state.videoSrc = videoSrc
    },
    SET_VIDEO_ID: (state, videoId) => {
      state.videoId = videoId
    },
    SET_TEST: (state, test) => {
      state.test = test
    }
  },

  actions: {
  }
}

export default app

